package com.gadgetscode.mazeboy;

import java.awt.Image;

public class Sprite {

	private boolean visible;
	private Image image;
	protected double x;
	protected double y;
	protected int dx;
	protected int dy;
	private int sy;
	private int sx;
	private int direction;

	public Sprite() {
		visible = true;
	}

	public void die() {
		visible = false;
	}

	public boolean isVisible() {
		return visible;
	}

	protected void setVisible(boolean visible) {
		this.visible = visible;
	}

	public void setImage(Image image) {
		this.image = image;
	}

	public Image getImage() {
		return image;
	}

	public void setX(double x) {
		this.x = x;
	}

	public void setY(double y) {
		this.y = y;
	}
	
	public void setSourceY(int sy) {
		this.sy = sy;
	}
	
	public void setSourceX(int sx) {
		this.sx = sx;
	}
	
	public void setDirection(int direction) {
		this.direction = direction;
	}
	
	public int getDirection() {
		return this.direction;
	}
	
	public double getY() {
		return y;
	}

	public double getX() {
		return x;
	}
	
	public int getSourceX() {
		return sx; 
	}
	
	public int getSourceY() {
		return sy; 
	}

}
